package com.chen.shopping_goods_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.shopping_common.pojo.Goods;
import com.chen.shopping_common.pojo.GoodsDesc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {
    void addGoodsSpecification(@Param("gid") Long gid,@Param("optionId") Long optionId);

    void deleteGoodsSpecificationOption(Long gid);

    void putaway(@Param("id") Long id,@Param("isMarketable") Boolean isMarketable);

    Goods findById(Long id);
    List<GoodsDesc> searchGoodsDescAll();

    //根据id查询商品详情
    GoodsDesc findGoodsDescById(Long id);
}
